<template>
  <div>
    用户名<input type="text" v-model='form.username'>
    密码<input type="text" v-model='form.password'>
    <button @click='add'>添加</button>

  </div>
</template>
<script>
export default {
  name: "tercher",
  data(){
    return{
      form:{}
    }
  },
  methods: {
    add(){
      this.axios.post('goods/teacherM/',this.form).then(res=>{
        //注册成功后跳转到登录页面
        this.$router.push({"path":'/login'})
      })
    }
  },
}
</script>

<style scoped>

</style>
